package com.edu.config;

import com.edu.interceptor.BaseEntityInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName MyBatisPlusConfig
 * @Description
 * @Author W.Jian
 * @Date 2021/5/20 20:34
 **/
@Configuration
@MapperScan("com.edu.mapper")
public class MyBatisPlusConfig {

    @Bean
    public BaseEntityInterceptor sqlInterceptor() {
        return new BaseEntityInterceptor();
    }
}
